import type { TableHeader , operationInstance } from "@/components/dzs-table/@types";

export const TABALE_HEADER: TableHeader[] = [
    {
        label: "文字显示内容",
        key: "title",
        width : "200px"
    },
    {
        label: "图片预览",
        key: "ImgUrl",
        isSlot : true,
        width : "120px",
    },
    {
        label: "关联文章",
        key: "articleTitle",
        width : "200px"
    },
    {
        label: "跳转地址",
        key: "path",
        width : "350px"
    },
    {
        label: "小程序跳转地址",
        key: "mpPath",
        width : "450px"
    },
    {
        label: "是否纯文本",
        key: "is_text",
        isSlot : true,
        width : "160px"
    },
    {
        label: "是否显示",
        key: "is_show",
        isSlot: true,
        width : "160px"
    },
    {
        label: "更新时间",
        key: "updatetime",
        width : "160px"
    },
    {
        label: "创建时间",
        key: "addtime",
        width : "160px"
    },
    {
        label: "创建人",
        key: "createByUser",
    },
];

export const operation : Array<operationInstance> = ['edit','delete','detail'];
